home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
050
/
madtrb4.arc
/
GRFXTABL.LIB
< prev
next >
Wrap
Text File
|
1984-12-04
|
1KB
|
36 lines
{@@@@@@@@@@@ copyright (C) 1984 by Neil J. Rubenking @@@@@@@@@@@@@@@@@@@@@@@@
The purchaser of these procedures and functions may include them in COMPILED
programs freely, but may not sell or give away the source text.
The ROM Graphics table resides at address $F000:$FA6E.
By defining an array of the right "shape" at that absolute
address, we have instant access to the table.
}
type
ROMentry = array[1..8] of byte;
var
table : array[0..255] of ROMentry absolute $F000:$FA6E;
{@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@}
procedure ShowEntry(entry : ROMentry);
var
Byt, Bit : 1..8;
AByte : byte;
begin { This procedure is meant to }
ClrScr; { write into the upper left }
for Byt := 1 to 8 do { corner of a window. }
begin
AByte := entry[Byt];
for bit := 8 downto 1 do
begin
if odd(AByte) then
begin
gotoXY(Bit,Byt);
write('█');
end;
AByte := AByte div 2;
end; {for bit}
end; {for Byt}
end;